#pragma once
#include "DQuadTreeSpace.h"
#include "DVector3.h"

namespace Skill
{
	namespace Ode
	{				
		DQuadTreeSpace::DQuadTreeSpace(DSpace^ space ,DVector3^ center, DVector3^ extents, int depth)
			:DSpace()
		{
			if(space)
				_SetPointer(dQuadTreeSpaceCreate(space->_Space(),center->_This,extents->_This,depth),true);
			else
				_SetPointer(dQuadTreeSpaceCreate(nullptr,center->_This,extents->_This,depth),true);
			_Container = space;
		}
	}
}